/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * isRequired(Bollean):是否必填
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动所关联的select的后段字段->bindFieldName
 */

//资产变更：项目信息
const project = [{
    type: 'text',
    label: '项目名称',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'name',
    labelWidth: "150px",
    bindFieldVal: "北京阳光大厦"
  },
  {
    type: 'text',
    label: '申请部门',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'bumen',
    bindFieldVal: "商业管理部"
  },
  {
    type: 'text',
    label: '申请人',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'e',
    bindFieldVal: "张三"
  },
  {
    type: 'text',
    label: '功能分区',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'w',
    bindFieldVal: "办公区"
  },
  {
    type: 'text',
    label: '所在楼层',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'q',
    bindFieldVal: "3层"
  }
]

//资产变更：变更前资产信息
const assetBefore = [{
    type: 'text',
    label: '空间类型',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'name',
    labelWidth: "150px",
    bindFieldVal: "写字楼"
  },
  {
    type: 'text',
    label: '空间门牌号码',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'bumen',
    bindFieldVal: "304、305"
  },
  {
    type: 'text',
    label: 'CAD面积和',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'e',
    bindFieldVal: "1020.37㎡"
  },
  {
    type: 'text',
    label: '空间版本',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'w',
    bindFieldVal: "20180211"
  }
]

//资产变更：变更后资产信息
const assetAfter = [{
    type: 'text',
    label: '空间类型',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'name',
    labelWidth: "150px",
    bindFieldVal: "写字楼"
  },
  {
    type: 'text',
    label: '空间门牌号码',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'bumen',
    bindFieldVal: "304A"
  },
  {
    type: 'text',
    label: 'CAD面积和',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'e',
    bindFieldVal: "1020.37㎡"
  },
  {
    type: 'text',
    label: '空间版本',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'w',
    bindFieldVal: "20210618"
  }
]

//合同付款申请
const contract = [{
    type: 'text',
    label: '项目名称',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'projectName',
    labelWidth: "150px",
    bindFieldVal: "",
    placeholder:""
  },
  // {
  //   type: 'text',
  //   label: '申请部门',
  //   isRequired: false,
  //   isReadOnly: true,
  //   bindFieldName: 'orgName',
  //   bindFieldVal: "",
  //   placeholder:""
  // },
  {
    type: 'text',
    label: '申请人',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'applyUserName',
    bindFieldVal: "",
    placeholder:""
  },
  {
    type: 'text',
    label: '合同名称',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'contractName',
    bindFieldVal: "",
    placeholder:""
  },
  {
    type: 'text',
    label: '剩余付款金额',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'unpaidAmount',
    bindFieldVal: "",
    placeholder:""
  },
  {
    type: 'text',
    label: '本次付款金额',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'applyAmount',
    bindFieldVal: "",
    placeholder:""
  },
  {
    type: 'text',
    label: '付款说明',
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'fundsDesc',
    bindFieldVal: "",
    placeholder:"",
    colSpan: 24,
  }
]

export {
    project,
    assetBefore,
    assetAfter,
    contract
}
